<?xml version="1.0"?>
<ScatterFile xmlns="http://schemas.microsoft.com/netmf/ScatterfileSchema.xsd">

    <Set Name="LoadRam"         Value="0x1fff0000"/>
	<Set Name="Heap_Begin"      Value="+0"/>
	<Set Name="Heap_End"        Value="0x2000CFF8"/>
	<Set Name="Stack_Bottom"    Value="0x2000D000"/>
	<Set Name="Stack_Top"       Value="0x2000FFF8"/>

 
    <LoadRegion Name="LR_%TARGETLOCATION%" Base="0x00000000" Options="ABSOLUTE">

        <ExecRegion Name="ER_%TARGETLOCATION%" Base="0x00000000" Options="FIXED" Size="">
			<FileMapping Name="BootVectors.obj" Options="(+RO, +FIRST)" /> <!-- for vector handlers to be far from the vectors --> 
			<FileMapping Name="FirstEntry.obj" Options="(+RO)" /> <!-- for vector handlers to be far from the vectors --> 
			<FileMapping Name="*" Options="(SectionForBootstrapOperations)" />
        </ExecRegion>

      
        <ExecRegion Name="ER_RAM_RO" Base="%LoadRam%" Options="ABSOLUTE" Size="">            
            <FileMapping Name="VectorsTrampolines.obj" Options="(+RO, +FIRST)" /> <!-- for vector handlers to be far from the vectors -->            
            <FileMapping Name="StartCode.obj" Options="(+RO)" />       
			<FileMapping Name="IDelayLoop.obj" Options="(+RO)" />  
			<FileMapping Name="*" Options="(SectionForFlashOperations)" />
            <FileMapping Name="*" Options="(+RO-CODE)" />
            <FileMapping Name="*" Options="(+RO-DATA)" />         
		  </ExecRegion>

        <ExecRegion Name="ER_RAM_RW" Base="+0" Options="ABSOLUTE" Size="">
            <FileMapping Name="*" Options="(+RW-DATA, +ZI)" />
		</ExecRegion>

        <ExecRegion Name="ER_HEAP_BEGIN" Base="%Heap_Begin%" Options="ABSOLUTE" Size="UNINIT">
            <FileMapping Name="*" Options="(SectionForHeapBegin)" />
            <FileMapping Name="*" Options="(SectionForCustomHeapBegin)" />
        </ExecRegion>

        <!-- everything between heapbegin and heapend will be allocated for a heap -->

        <ExecRegion Name="ER_HEAP_END" Base="%Heap_End%" Options="ABSOLUTE" Size="UNINIT">
            <FileMapping Name="*" Options="(SectionForHeapEnd)" />
            <FileMapping Name="*" Options="(SectionForCustomHeapEnd)" />
        </ExecRegion>


        <!-- this must go last here to provide a low water mark on the stack -->

        <ExecRegion Name="ER_STACK_BOTTOM" Base="%Stack_Bottom%" Options="ABSOLUTE" Size="UNINIT">
            <FileMapping Name="*" Options="(SectionForStackBottom)" />
        </ExecRegion>
	    
        <ExecRegion Name="ER_STACK_TOP" Base="%Stack_Top%" Options="ABSOLUTE" Size="UNINIT">
            <FileMapping Name="*" Options="(SectionForStackTop)" />
        </ExecRegion>

    </LoadRegion>

</ScatterFile>
